//package com.imedway.ihe.dtz.xds.conf;
//
//import javax.xml.ws.Endpoint;
//
//import org.apache.cxf.Bus;
//import org.apache.cxf.jaxws.EndpointImpl;
//import org.apache.cxf.transport.servlet.CXFServlet;
//import org.openehealth.ipf.commons.ihe.xds.iti18.Iti18PortType;
//import org.openehealth.ipf.commons.ihe.xds.iti41.Iti41PortType;
//import org.openehealth.ipf.commons.ihe.xds.iti42.Iti42PortType;
//import org.openehealth.ipf.commons.ihe.xds.iti43.Iti43PortType;
//import org.openehealth.ipf.commons.ihe.xds.iti61.Iti61PortType;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.web.servlet.ServletRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import lombok.RequiredArgsConstructor;
//
///**
// * @author zhongyj <1126834403@qq.com><br/>
// * @date 2024/7/2
// */
//@Configuration
//@RequiredArgsConstructor
//public class CxfConfig2 {
//
//	
//	@Autowired
//	private WebServiceInterceptor webServiceInterceptor;
//	
//    private final Bus bus;
//    private final Iti18PortType iti18PortType;
//    private final Iti41PortType iti41PortType;
//    private final Iti42PortType iti42PortType;
//    private final Iti43PortType iti43PortType;
//    private final Iti61PortType iti61PortType;
//
//    @SuppressWarnings("all")
//    @Bean
//    public ServletRegistrationBean disServlet() {
//        return new ServletRegistrationBean(new CXFServlet(), "/services/*");
//    }
//
//    @Bean
//    public Endpoint iti18() {
//        EndpointImpl endpoint = new EndpointImpl(bus, iti18PortType);
//        endpoint.publish("/iti18");
//        endpoint.getInInterceptors().add(webServiceInterceptor);
//        return endpoint;
//    }
//    @Bean
//    public Endpoint iti41() {
//        EndpointImpl endpoint = new EndpointImpl(bus, iti41PortType);
//        endpoint.publish("/iti41");
//        endpoint.getInInterceptors().add(webServiceInterceptor);
//        return endpoint;
//    }
//    @Bean
//    public Endpoint iti42() {
//        EndpointImpl endpoint = new EndpointImpl(bus, iti42PortType);
//        endpoint.publish("/iti42");
//        endpoint.getInInterceptors().add(webServiceInterceptor);
//        return endpoint;
//    }
//    @Bean
//    public Endpoint iti43() {
//        EndpointImpl endpoint = new EndpointImpl(bus, iti43PortType);
//        endpoint.publish("/iti43");
//        endpoint.getInInterceptors().add(webServiceInterceptor);
//        return endpoint;
//    }
//    @Bean
//    public Endpoint iti61() {
//        EndpointImpl endpoint = new EndpointImpl(bus, iti61PortType);
//        endpoint.publish("/iti61");
//        endpoint.getInInterceptors().add(webServiceInterceptor);
//        return endpoint;
//    }
//}
